<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'index'}" class="action">属性列表</a></li>
				<li><a href="{|U:'add'}">属性添加</a></li>
			</ul>
		</div>
		<div class="title-header">商品属性</div>
		<form action="" method="post">
			<input type="hidden" name="attr_id" value="{$field.attr_id}">
			<table class="table1 hd-form">
				<tr>
					<th class="w50">属性名称</th>
					<td>
						<input type="text" name="attr_name" class="w100" value="{$field.attr_name}">
					</td>
				</tr>
				<tr>
					<th>商品类型</th>
					<td>
						<select name="cat_id">
							<option value="0">==商品属性==</option>
							<list from='$goods_type' name='$gt'>
								<option value="{$gt.cat_id}" <if value="$gt.cat_id == $field.cat_id">selected=""</if>>{$gt.cat_name}</option>
							</list>
						</select>
					</td>
				</tr>
				<tr>
					<th>属性类型</th>
					<td>
						<label><input type="radio" name="attr_type" value="1" checked="" <if value="$field.attr_type eq 1">checked=''</if>>普通属性</label>
						<label><input type="radio" name="attr_type" value="2" <if value="$field.attr_type eq 2">checked=''</if>>规格属性</label>
						<span class='hd-message'>
							<em>&nbsp&nbsp普通属性只能录入值，规格属性可以设置价格比如颜色、尺码</em>
						</span>
					</td>
				</tr>
				<tr>
					<th>录入方式</th>
					<td>
						<label> <input type="radio" name="attr_input_type" value="1" checked="" <if value="$field.attr_input_type eq 1">checked=''</if>>文本框</label>
						<label><input type="radio" name="attr_input_type" value="2" <if value="$field.attr_input_type eq 2">checked=''</if>>下拉列表</label>
						<label><input type="radio" name="attr_input_type" value="3" <if value="$field.attr_input_type eq 3">checked=''</if>>文本域</label>
						<span class='hd-message'>
							<em>&nbsp&nbsp选择下拉列表框时必须输入默认值</em>
						</span>
					</td>
				</tr>
				<tr>
					<th>属性值</th>
					<td>
						<textarea name="attr_value" class="w200 h100" disabled="">{$field.attr_value}</textarea>&nbsp&nbsp一行只能输入一个值
					</td>
				</tr>
			</table>
			<div class="position-bottom">
				<input type="submit" value="添加" class="hd-success">
			</div>
					
		</form>
		<js file="__CONTROLLER_VIEW__/Js/js.js"/>
	</div>
</body>
</html>